<script src="../resources/text-based-repaint.js" type="text/javascript"></script>
<script type="text/javascript">
function repaintTest() {
    var div = document.getElementById("div");
    window.getSelection().collapse(div, 1);
}
</script>
<html>
<body onload="runRepaintAndPixelTest();">
<div contenteditable="true" style="transform:rotate(30deg)translate(100px,200px)">
<div id="div">This test verifies caret repaint is correctly transformed.</div>
</div>
<script>
window.getSelection().collapse(div, 0);
</script>
</body>
</html>
